package com.irdstudio.apicenter.console.service.appframe;

import java.sql.SQLException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.irdstudio.apicenter.console.dm.AppFrameComm;
import com.irdstudio.apicenter.console.dm.AppFrameCommDao;

@Service(value = "appFrameCommService")
public class AppFrameCommService {
	@Autowired
	private AppFrameCommDao appFrameCommDao;

	/**
	 * 获取模块信息
	 * 
	 * @param id
	 * @param name
	 * @param pageNowe
	 * @param pageSiz
	 * @return
	 * @throws SQLException
	 * @throws ClassNotFoundException
	 */
	public AppFrameComm queryAppFrameCommDetail(String appid)
			throws SQLException, ClassNotFoundException {

		return appFrameCommDao.queryWithKeys(appid);

	}

	public int updateByKeys(AppFrameComm appFrameComm) throws SQLException,
			ClassNotFoundException {

		return appFrameCommDao.updateByKeys(appFrameComm);

	}

	public int insertOne(AppFrameComm appFrameComm) throws SQLException,
			ClassNotFoundException {

		return appFrameCommDao.insertOne(appFrameComm);

	}

}
